<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('record/index')}">所有积分记录</a></li>
			<li><a href="{:url('record/add')}">添加积分记录</a></li>
		</ul>
		<form class="well form-inline margin-top-20"  method="get" action="{:url('record/index')}">
			积分名称:
			<input type="text" class="form-control" name="name" style="width: 200px;" value="{$Request.param.name}" placeholder="请输入学生姓名查询">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('record/index')}">清空</a>
		</form>
		<table class="table table-hover table-bordered">
			<thead align="center">
				<tr>
					<th width="80">ID</th>
					<th>学生姓名</th>
					<th>原因</th>
					<th>积分变动</th>
					<th>操作员账号</th>
					<th>添加时间</th>
					<th width="160">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="record" item="vo">
				<tr>
					<td>{$key+1}</td>
					<td>{$vo.stu_name}</td>
					<td>{$vo.reason_name}</td>
					<td>{$vo.score_name}</td>
					<td>{$vo.user_name}</td>
					<td>{$vo.create_time}</td>
					<td>
						<a class="btn btn-xs btn-success" href="{:url('record/edit', array('id'=>$vo['id']))}">编辑</a>
						<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('record/delete', array('id'=>$vo['id']))}">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>